import { $t } from "@/plugins/i18n";
import { home } from "@/router/enums";
const Layout = () => import("@/layout/index.vue");

export default {
  path: "/permission",
  name: "Permission",
  component: Layout,
  redirect: "/permission/list",
  meta: {
    icon: "ep:key",
    title: "权限管理",
    rank: home + 3
  },
  children: [
    {
      path: "/permission/list",
      name: "PermissionList",
      component: () => import("@/views/permission/list.vue"),
      meta: {
        title: "权限列表"
      }
    },
    {
      path: "/permission/create",
      name: "PermissionCreate",
      component: () => import("@/views/permission/create.vue"),
      meta: {
        title: "新增权限"
      }
    },
    {
      path: "/permission/edit/:id",
      name: "PermissionEdit",
      component: () => import("@/views/permission/edit.vue"),
      meta: {
        title: "编辑权限"
      }
    }
  ]
} satisfies RouteConfigsTable;